package com.cloudkinto.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cloudkinto.entity.OrderTrackBillDo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloudkinto.extentity.track.MatchTrackDto;
import com.cloudkinto.extentity.track.OrderTrackNumberDto;
import com.cloudkinto.extentity.track.OrderTrackPageDto;
import com.cloudkinto.extentity.track.OrderTrackUnMatchDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author hua
 * @since 2023-08-02
 */
@Mapper
public interface OrderTrackBillDao extends BaseMapper<OrderTrackBillDo> {
    List<OrderTrackPageDto> listPage(@Param("page") IPage<OrderTrackPageDto> page, @Param("map") Map<String, String> map);


    List<OrderTrackPageDto> listPage(@Param("map") Map<String, String> map);

    List<OrderTrackNumberDto> getOutputTrackNumber(Long outputId);

    List<OrderTrackNumberDto> getFbaOutputTrackNumber(Long fbaOutputId);

    List<OrderTrackNumberDto> getBackTrackNumber(Long backId);

    MatchTrackDto matchTrack(String trackNumber, String date);

    List<MatchTrackDto> getMatchTrackList(String beginDate, String endDate);


    List<OrderTrackUnMatchDto> getUnMatchList(@Param("page") IPage<OrderTrackUnMatchDto> page, @Param("map") Map<String, String> map);

}
